all: top

top: top.vcd
	(gtkwave top.vcd --save top.gtkw &> /dev/null) &

top.vcd: top.v
	iverilog -o top.vvp top.v
	vvp top.vvp

clean:
	rm -f top.vvp top.vcd

.PHONY: top
